import React, {Component} from 'react';

class Child extends Component {
    state = {
        // users:[
        //     {id:'001',name:'tom',age:18},
        //     {id:'002',name:'az',age:17},
        // ]
        users:'123123'
    }




    render() {
        return (
            <div>
                {
                    this.state.users.map(item=>{
                        return <li key={item.id}>{item.name}--{item.age}</li>
                    })
                }
            </div>
        );
    }
}

export default Child;
